<?php
    $handle = fopen("log.txt", "a");    
    fwrite($handle, var_export('$data', true));
    fwrite($handle,  var_export($_POST, true));
    fwrite($handle,  var_export($_FILES, true));    
    fclose($handle);
?>
